#ifndef	_BUTTON_H
#define	_BUTTON_H

/* ------------------------------------------------------------------ */
/*                              button                                */
/* ------------------------------------------------------------------ */

#define	BUTTON_STYLE_FLAT	0x00000000
#define	BUTTON_STYLE_BORDER	0x00000001

struct button {
	const char 	*caption;
	status_t	status;
	u32 		style;
};

void button_draw(const struct window *win);
int button_create(struct window *win, const char *caption,
	          void (*draw)(const struct window *),
		  void (*func)(const struct window *));
#endif
